From 3bd6e9ea00967f104440ea34703ce3eb6632ee38 Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Thu, 26 Jun 2025 11:07:08 -0230 Subject: [PATCH] style: Restore drawing the slight border on panel in light theme Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8481 Part-of: --- data/theme/gnome-shell-sass/_colors.scss | 1 + data/theme/gnome-shell-sass/widgets/_panel.scss | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/data/theme/gnome-shell-sass/_colors.scss b/data/theme/gnome-shell-sass/_colors.scss index b3a52b6f6..f3fc06be1 100644 --- a/data/theme/gnome-shell-sass/_colors.scss +++ b/data/theme/gnome-shell-sass/_colors.scss @@ -23,6 +23,7 @@ $system_fg_color: $_base_color_light; // panel colors $panel_bg_color: if($variant == 'light', $_base_color_light, $dark_5); $panel_fg_color: if($variant == 'light', $_base_color_dark, $light_1); +$panel_border_color: if($variant == 'light', transparentize($_base_color_dark, .9), transparent); // card elements $card_bg_color: if($variant == 'light', $light_1, lighten($bg_color, 7%)); diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss index 2a29eee9d..4c74d717e 100644 --- a/data/theme/gnome-shell-sass/widgets/_panel.scss +++ b/data/theme/gnome-shell-sass/widgets/_panel.scss @@ -17,6 +17,11 @@ $panel_transition_duration: 250ms; // same as the overview transition duration @extend %numeric; transition-duration: $panel_transition_duration; + @if $variant == 'light' { + // uses half a pixel to compensate for box-shadow weirdness + box-shadow: inset 0 -0.5px 0 0 $panel_border_color; + } + // panel menus .panel-button { @include panel_button(); -- 2.39.5